﻿@{  
    Layout = "~/_SiteLayout.cshtml";
    Page.Title = "Feedback Tab Demonstration";
}
<h3>UserVoice.CustomTab() Method</h3>
<p>
    This page demonstrates how to add a UserVoice feedback tab to your application. Click the "Feedback" link below, and notice that it opens the UserVoice feedback window. 
    To achieve this, we added the following code to our page:
</p>

<pre class="codePre">@@UserVoice.CustomTab()
</pre>

<p>
    The custom tab allows you to add the UserVoice tab as your own link somewhere on the page. The link should use the # character for the href attribute, and the following code in the onclick handler:
</p>
<pre class="codePre">&lt;a href="#" <strong>onclick="UserVoice.Popin.show(uservoiceOptions); return false;"</strong>&gt;&lt;/a&gt;
</pre>

<h3>Click the following link to see the custom tab:  <a href="#" onclick="UserVoice.Popin.show(uservoiceOptions); return false;">Feedback</a></h3>
@UserVoice.CustomTab()